import request from '@/utils/request'

export default {
  queryTarget(tableQuery, tablePage){
    let params={
      page:tablePage.current?tablePage.current:1,
      num:tablePage.size?tablePage.size:20,
      year:tableQuery.year,
      orgnization_id:tableQuery.orgnization_id
    }
    return request({
      url:'/target/page',
      method:'get',
      params
    })
  },
  targetStore(data){
    return request({
      url:'/target/store',
      method:'post',
      data
    })
  },
  targetDetail(params){
    return request({
      url:'/target/show',
      method:'get',
      params
    })
  },
  targetDelete(tid){
    return request({
      url:`/target/${tid}`,
      method:'delete'
    })
  }


}
